<?php
	header("Content-Type: text/html;charset=utf-8");
	include("function/_nosql.php"); //
	include("function/function.php");
	$kboy_userid = $_SESSION['kboy_userid'];
	$kboy_user = $_SESSION['kboy_user'];
	$search_keys = chkstr(trim($_REQUEST['search_keys']));
	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的好友_搜索_<?= $web_titles ?></title>
<meta name="Keywords" content="我的好友,搜索,<?= $web_keywords ?>" />
<meta name="Description" content="<?= $web_description ?>" />
<link rel="stylesheet" href="css/common.css"/>
<link rel="stylesheet" href="css/sq.css"/>
<link rel="stylesheet" href="layer/skin/layer.css" />
<script type="text/javascript" src="js/baidutongji.js"></script>
<script type="text/javascript" src="js/laydate/laydate.js"></script>
</head>
<body>
    <div class="sq-wrap-2">
    	<div class="search-wrap">
    		<div class="search-box-2">
		      <form name="myform" id="myform" method="post" action="forum_friend_search.php">
		        <input type="text" class="search-text" value="<?=$search_keys?>" name="search_keys"/>
		        <input type="submit" class="search-send" value=""/>
		      </form>
		    </div>
    	</div>
		<div class="sq-fr-bd">
			<div class="sq-fr-pane current">
				<div class="sq-fr-list">
				
					<?php
							$SQL = "";
							if(!empty($search_keys)){
								if(!empty($SQL)){
									$SQL = $SQL." and user_nickname like '%".$search_keys."%' or user_email like '%".$search_keys."%' or user_phone like '%".$search_keys."%' or user_nickname like '%".$search_keys."%'";
								}else{
									$SQL = " user_nickname like '%".$search_keys."%' or user_email like '%".$search_keys."%' or user_phone like '%".$search_keys."%' or user_nickname like '%".$search_keys."%'";
								}
							}
							

							if($SQL){
								$news_sql = "select * from kboy_user where ".$SQL." order by uid desc";
							}else{
								$news_sql = "select * from kboy_user order by uid desc";
							}
							$news_rows = mysql_query($news_sql);
							while($news_rs = mysql_fetch_array($news_rows)){
					?>
					<dl>
						<dt><a href="forum_news.php?uid=<?=$news_rs['uid']?>" target="_blank"><img src="<?=$news_rs['user_face']?>" width="72" height="72" alt=""/></a></dt>
						<dd>
							<p class="name"><a href="forum_news.php?uid=<?=$news_rs['uid']?>" target="_blank"><?=getUserNickName($news_rs['uid'])?></a></p>
							<a href="javascript:void(0);" mid="<?=$news_rs['uid']?>" class="add-focus guanzhu">+关注</a>
						</dd>
					</dl>
					<?php
							}
					?>

				</div>
			</div>
		</div>
    </div>
    <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="js/jquery.SuperSlide.2.1.1.js"></script>
    <script type="text/javascript" src="js/main.js"></script>
    <script type="text/javascript" src="js/sq.js"></script>
</body>
</html>

